<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Exp_ctrl extends CI_Controller {

	function __construct()
	{
		parent::__construct ();
		$this->load->model('usertype_model');
		$this->load->model('users_model');
		$this->load->model('drugs_model');
	}
	
	function index() {
	
		$session_data = $this->session->userdata('logged_in');
		$usertype_id = $session_data["usertype_id"];
		$data['user'] = $this->users_model->select_profile($usertype_id);
		
		$data['drugs'] = $this->drugs_model->_getAll();
		$data['result'] = $this->drugs_model->select_all();
		
		$this->load->view('adminsite/exp_view',$data);
	}

}

	
?>